package com.cjq.allservice.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author cjq
 * @since 2022-01-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Cart对象", description="")
public class Cart implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "购物车id")
    @TableId(value = "cart_id", type = IdType.ID_WORKER_STR)
    private String cartId;

    @ApiModelProperty(value = "购物车商品id")
    private String cartGoodsId;

    @ApiModelProperty(value = "用户id")
    private String cartUserId;

    @ApiModelProperty(value = "购物车商品数量")
    private Integer cartGoodsNumber;

    @ApiModelProperty(value = "勾选框状态：1-勾选，0-未勾选")
    private Integer checked;

    @ApiModelProperty(value = "逻辑删除：1-删除，0-未删除")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
